import { defineConfig } from "vitepress"
import { head, socialLinks, sidebar } from "./theme-config"
export default defineConfig({
  title: "Qing Design",
  description: "一个 Vue3 UI 框架",
  lang: "zh-CN",
  lastUpdated: true,
  base: '/qing-design/',
  head,
  markdown: {
    theme: {
      light: 'slack-ochin',
      dark: 'slack-dark'
    },
  },
  locales: {
    "/": {
      lang: "zh-CN",
      title: "自定义的 title",
      description: "自定义的 description"
    },
    "/en-US/": {
      lang: "en-US",
      title: "Custom title",
      description: "Custom description"
    }
  },
  themeConfig: {
    logo: '/logo.svg',
    lastUpdatedText: "最后更新时间",
    docsDir: "docs",
    editLink: {
      pattern: 'https://github.com/vuejs/vitepress/edit/main/docs/:path',
      text: 'Edit this page on GitHub'
    },
    repo: "https://gitee.com/login",
    footer: {
      message: "Released under the MIT License.",
      copyright: "Copyright © 2022-present Qing"
    },
    nav: [
      { text: "指南", link: "/en-US/guide/installation", activeMatch: '/en-US/guide/' },
      { text: "组件", link: "/en-US/component/icon", activeMatch: '/en-US/component/' },
      {
        text: "语言", items: [
          { text: 'Item A', link: '/item-1' },
          { text: 'Item B', link: '/item-2' },
          { text: 'Item C', link: '/item-3' }
        ]
      }

    ],
    socialLinks,
    sidebar,
    locales: {
      '/': {
        label: '简体中文',
        selectText: '多国语言'
      },
      '/en-US/': {
        label: 'English',
        selectText: 'Languages'
      }
    },
    search: {
      provider: 'local'
    },
  }
})